#ifndef CorrIO2_H
#define CorrIO2_H

#include "BinData2.h"

void WriteEE(std::ostream& fout, double minsep, double binsize, double smoothscale,
             const std::vector<BinData2<EData,EData> >& data);

void WriteM2(std::ostream& fout, double minsep, double binsize,
             const std::vector<BinData2<EData,EData> >& data);

void WriteNE(std::ostream& fout, double minsep, double binsize, double smoothscale,
             const std::vector<BinData2<NData,EData> >& crossdata);

void WriteNM(std::ostream& fout, double minsep, double binsize, double smoothscale,
             const std::vector<BinData2<NData,EData> >& crossdata);

void WriteNorm(std::ostream& fout, double minsep, double binsize,
               const std::vector<BinData2<NData,EData> >& crossdata,
               const std::vector<BinData2<EData,EData> >& twoptdata,
               const std::vector<BinData2<NData,NData> >& dd,
               const std::vector<BinData2<NData,NData> >& dr,
               const std::vector<BinData2<NData,NData> >& rr);

void WriteNN(std::ostream& fout, double minsep, double binsize,
             const std::vector<BinData2<NData,NData> >& dd,
             const std::vector<BinData2<NData,NData> >& dr, 
             const std::vector<BinData2<NData,NData> >& rd, 
             const std::vector<BinData2<NData,NData> >& rr);

#endif
